

#include "core/components_ng/pattern/mycircle/mycircle_pattern.h"

namespace OHOS::Ace::NG {
bool MyCirclePattern::OnDirtyLayoutWrapperSwap(const RefPtr<LayoutWrapper>& dirty, const DirtySwapConfig& config)
{
    return !(config.skipMeasure || dirty->SkipMeasureContent());
}

void MyCirclePattern::OnModifyDone()
{
    auto mycircleLayoutProperty = GetLayoutProperty<MyCircleLayoutProperty>();
    CHECK_NULL_VOID(mycircleLayoutProperty);
    radiusLength_ = mycircleLayoutProperty->GetRadius().value_or(30.0_vp).ConvertToPx();
    edgeWidth_ = mycircleLayoutProperty->GetEdgeWidth().value_or(1.0_vp).ConvertToPx();
}
} // namespace OHOS::Ace::NG
